
/**
 * @(#)SendMailTask.java 2017å¹´10æ16æ¥	ä¸å4:13:33 Copyrights (C) 2017é«å¾·ä¿¡æ¯ææ¯æéå¬å¸
 */
package com.wwy.monitor.scheduler;

import com.wwy.monitor.service.McFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * (ç±»ååè½è¯´ææè¿°)
 * <p>
 * ä¿®æ¹åå²:											<br>
 * ä¿®æ¹æ¥æ    		ä¿®æ¹äººå   	çæ¬	 		ä¿®æ¹åå®¹<br>
 * -------------------------------------------------<br>
 * 2017å¹´10æ16æ¥ ä¸å4:13:33   fulianqiu     1.0    	åå§ååå»º<br>
 * </p>
 * @author fulianqiu
 * @version 1.0
 * @since JDK1.8*/
@Component
public class SendMailTask {
    private static final Logger logger = LoggerFactory.getLogger("mailJobLogger");

    /**
     * åéemailå®æ¶ä»»å¡*/
    @Scheduled(fixedDelay = 1000 * 5)
    public void sendMail() {
        logger.info("SendMailTask task start");
        McFactory.getMailMcService().queryAndSend();
        logger.info("SendMailTask task end");
    }
}